<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<div align="center">
		<form action="list" method="post">
		公司代码:<input type="text" name="gsdm" value="${c.gsdm }">
		公司名称:<input type="text" name="gsname" value="${c.gsname }">
		烟感设备编号:<input type="text" name="bh" value="${c.bh }"><br>
		探测开始时间:<input type="date" name="startdate1" value="${c.startdate1 }">-<input type="date" name="startdate12" value="${c.startdate12 }"><br>
		探测结束时间:<input type="date" name="enddate1" value="${c.enddate1 }">-<input type="date" name="enddate12" value="${c.enddate12 }"><br>
		<input type="submit" value="查询">
			<table border="1" cellpadding="1" cellspacing="1">
				<tr>
					<td>序号</td>
					<td>公司代码</td>
					<td>公司名称</td>
					<td>烟感设备编号</td>
					<td>探测开始时间</td>
					<td>探测开始时间</td>
					<td>探测时长</td>
					<td>操作</td>
				</tr>
				<c:forEach items="${pg.list }" var="a">
				<tr>
					<td>${a.xh }</td>
					<td>${a.gsdm }</td>
					<td>${a.gsname }</td>
					<td>${a.bh }</td>
					<td><fmt:formatDate value="${a.startdate }" pattern="yyyy-MM-dd"/></td>
					<td><fmt:formatDate value="${a.enddate }" pattern="yyyy-MM-dd"/></td>
					<td>${a.datesc2 }</td>
					<td>
						<a href="tolist?id=${a.bh }"><input type="button" value="增补"></a>
					
					</td>
				</tr>
				</c:forEach>
				<jsp:include page="/js/page.jsp"></jsp:include>
			</table>
			
		</form>
	
	</div>
</body>
</html>